package cn.wolfcode.mapper;

import cn.wolfcode.domain.BoyFriend;
import cn.wolfcode.domain.Student;
import org.apache.ibatis.annotations.Param;

public interface BoyFriendMapper {
    //保存
    void save(BoyFriend boyFriend);
    //建立关系往中间表保存数据
    void insertRelation(@Param("boyFriend") Long boyFriend, @Param("girlFriend") Long GirlFriend);
   //根据id查询并查处所认识的女朋友们
    BoyFriend selectOne(Long id);
    //删除男朋友,中间表的数据也要删除
    void delete(Long id);
    void deleteRelation(Long boyId);
}
